Previous Thread
Next Thread
Print Thread
Rate Thread
#153020 05/27/2002 4:46 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Name: PAGE TOP v 1.1

Description: This hack makes a link (image) at the end of each post that when clicked takes you back to the top of the page! Simple but effective.

Demo: ADWOFF Test Board

Author: James (badnbusy)

Requirement: UBB™ 6.3

Download: pagetop_install2.zip

------

I always have liked this hack, and I went back to James's instructions for 6.2+ (or less) and tried to see if I could figure out how to get it to work with 6.3

-------

The zip file contains text instructions (I did a Multihack, too, but it's too hard for me to describe how I applied it! laugh ) and a small graphic for the page top.

The text instructions are for the public_topic_page.pl in the Templates and JCTemplates directories.

--------

The ONLY changes from James's original work was finding the code to be replaced. I did not do anything to the code that James created.


Sue
adwoff.com
Sponsored Links
Joined: Mar 2001
Posts: 19
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 19
Ohhh... so easy and working perfectly.
Thank you


Nervana
Cairo, Egypt
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Useful hack, I'll install it later. Thanks.

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
I guess that 'HOME' key or 'ICON' in the browser is just too far to click eh? =)

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
quote:
Originally posted by mark99:
I guess that 'HOME' key or 'ICON' in the browser is just too far to click eh? =)

LOL ... Mark, the value of this hack is with pages that are long and/or threads that are long.

For example, if you are on page 10 in a thread and you click on the icon for the Page Top, it will take you to the first post on the first page in the thread.

Let's say you're reading through one of these threads on the hacks to see if you want to install it. You get to the end and you want an "easy" way to get back to the first post in the thread. This makes it easy. laugh


Sue
adwoff.com
Sponsored Links
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
thankie... definitely useful smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
... not in browsers that comply with standards.

# alone should not take you to the top of the page. Any browser that does this is displaying a bug.

To get to the top of the page in a cross-browser manner, you have to use a little Javascript:

javascript:scrollTo(0,0);

smile


UBB.classic: Love it or hate it, it was mine.
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394

Joined: Mar 2001
Posts: 19
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 19
I already change it to javascript:scrollTo(0,0);
working perfectly now thanks C.C.


Nervana
Cairo, Egypt
Joined: Oct 2001
Posts: 114
Content Kidman
Content Kidman
Offline
Joined: Oct 2001
Posts: 114
I just tweaked the code so that the bottom rule and graphic is properly aligned with the top rule. I also added the "#top" fix described above.

[code][/code]

Sponsored Links
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
nice work laugh


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I think I installed this without that fix CC posted. I will check..


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 323
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 22
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)